﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Model;
using BLL;
using Newtonsoft.Json;

namespace LandAppraisal.Controllers
{
    public class User_DeptController : ApiController
    {
        AdminBLL bll = new AdminBLL();

        #region 根据编号查询勘察员的信息
        /// <summary>
        /// 根据编号查询勘察员的信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public string Get(int id)
        {
            return JsonConvert.SerializeObject(bll.GetListByDeptId_3(id));
        }
        #endregion

        #region 根据编号查询评估员的信息
        /// <summary>
        /// 根据编号查询评估员的信息
        /// </summary>
        /// <param name="value"></param>
        public string Post(int id)
        {
            return JsonConvert.SerializeObject(bll.GetListByDeptId_4(id));
        }
        #endregion

    }
}
